package com.zh.article;

import com.zh.creature.Creature;

/**
 * @description:
 * @author: zhangHang
 * @date: Created in 2020/5/24 10:37
 * @version: 1.0
 * @modified By:
 */
public class DrugIntensify extends Drug {

    public DrugIntensify(String id, String description, int effectPoints) {
        super(id, description, effectPoints);
    }

    @Override
    public void useDrug(Creature targetCreature) {
        targetCreature.getCurrentWeapon().setDamagePoints(targetCreature.getCurrentWeapon().getDamagePoints()-this.getEffectPoints());
    }
}
